package com.sharding.demo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sharding.demo.entity.CommonDict;
import com.sharding.demo.mapper.CommonDictMapper;
import com.sharding.demo.service.CommonDictService;
import org.springframework.stereotype.Service;

@Service
public class CommonDictServiceImpl extends ServiceImpl<CommonDictMapper, CommonDict> implements CommonDictService {
    @Override
    public boolean save(CommonDict entity) {
        return super.save(entity);
    }

    @Override
    public IPage<CommonDict> selectPageVo(Page<CommonDict> page, CommonDict state) {
        CommonDictMapper baseMapper = getBaseMapper();
        return baseMapper.selectPage(page, null);
    }
}